package com.littlegnal.share2;

import android.app.Application;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;

/**
 * @author littlegnal
 * @date 2017/2/22
 */

public class App extends Application {

  private Retrofit mRetrofit;

  @Override
  public void onCreate() {
    super.onCreate();

    mRetrofit = new Retrofit.Builder()
        .baseUrl("http://pt.iyunmai.com/api/android/")
        .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
        .build();
  }

  public Retrofit getRetrofit() {
    return this.mRetrofit;
  }
}
